// 导入封装好的网络请求类工具
import request from '../../../../utils/request';
// 封装各种接口请求
// export const 接口名 = () => Network.get('/路由',参数对象);

//井眼-通过id查询数据
export const GetWellById = (id) => {
    return request({
        url: `/well/getWellById/${id}`,
        method: 'get',
    })
}

//井眼-保存数据  
export const EditOneWell = (form) => {
    return request({
        url: '/well/editOneWell',
        method: 'put',
        data: form
    })
}

//井眼-删除数据 /well/deleteOneWell/{wellId}
export const DeleteOneWell = (wellid) => {
    return request({
        url: `/well/deleteOneWell/${wellid}`,
        method: 'delete'
    })
}

//井眼-查询数据 /well/findWellByCondition
export const FindWellByCondition = (searchModel) => {
    return request({
        url: '/well/findWellByCondition',
        method: 'post',
        data: searchModel
    })
}

//井眼新增数据 /well/insertOneWell
export const InsertOneWell = (form) => {
    return request({
        url: "/well/insertOneWell",
        method: "post",
        data: form
    })
}